<%@page contentType="text/html;charset=UTF-8" %>
<%@page import="org.jbpm.api.*" %>
<%@page import="java.util.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
<head>
    <title>请假审批</title>
</head>
<body>
<table width=600 border=1>
    <tr><td colspan="8">任务列表</td></tr>
    <tr>
        <td>ID</td>
        <td>名称</td>
        <td>分配人</td>
        <td>创建时间</td>
        <td>持续时间</td>
        <td>优先级</td>
        <td>描述</td>
        <td>操作</td>
    </tr>
    <c:forEach var="task" items="${taskList}">
        <tr>
            <td>${task.id}</td>
            <td>${task.name}</td>
            <td>${task.assignee}</td>
            <td>${task.createTime}</td>
            <td>${task.duedate}</td>
            <td>${task.priority}</td>
            <td>${task.description}</td>
            <td>
                <a href="leave?zzg=view&id=${task.id }" target="_blank">审核</a>
                <a href="leave?zzg=confirm&id=${task.id }&name=${task.assignee}">批准</a>
                <a href="leave?zzg=dissent&id=${task.id }&name=${task.assignee}">不批准</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>  